var http = require('http');
var url = require('url');
var util = require('util');
var server = http.createServer(function(req,res){
        res.writeHead(200 , {"Content-Type":"text/html"});
       // res.write(util.inspect(url.parse(req.url).hostname));
        res.end("YOU require : " + util.inspect(url.parse(req.url)));  //重点在这里
});
server.listen(8888);
console.log("Your server is started @http://localhost:8888");

var querystring = require('querystring');
var hello = querystring.parse('hello=Node&hello2=Node2').hello;
var hello2 = querystring.parse('hello=Node&hello2=Node2').hello2;
console.log("hello值为：" + hello + "; hello2值为：" + hello2);